From afdd01a5bb4f26bad42ebcd533a15806ff43962a Mon Sep 17 00:00:00 2001 From: oliskoli Date: Tue, 7 Nov 2006 07:31:08 +0000 Subject: [PATCH] Fix validation of latitude and longitude (radius filter). --- win32/gui-2/filter.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32/gui-2/filter.pas b/win32/gui-2/filter.pas index 9b5b07614..4c9c9d759 100644 --- a/win32/gui-2/filter.pas +++ b/win32/gui-2/filter.pas @@ -543,8 +543,8 @@ begin end; CanClose := ValidateNumerical(edWayptRadius, 0, 99999) and - ValidateNumerical(edWayptRadiusLat, -180, 180) and - ValidateNumerical(edWayptRadiusLon, -90, 90) and + ValidateNumerical(edWayptRadiusLat, -90, 90) and + ValidateNumerical(edWayptRadiusLon, -180, 180) and ValidateNumerical(edWayptMergeDist, 0, 99999999) and ValidateNumerical(edRoutesSimplifyMaxPoints, 1, 9999); ChangeCheckBoxesChecked(Self, False); -- 2.30.2